package com.cloud.ribbon;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

//@EnableEurekaClient
//@SpringBootApplication
//开启断路器功能
//@EnableCircuitBreaker
@SpringCloudApplication  //包含以上三个注解功能
@EnableFeignClients
public class CloudRibbonWebApplication {

	public static void main(String[] args) {
		SpringApplication.run(CloudRibbonWebApplication.class, args);
	}

//	@Bean
//	@LoadBalanced
//	public RestTemplate restTemplate(){
//		return new RestTemplate();
//	}
}
